import ArrayStack from './01.基于数组实现栈结构(使用接口)';

// 创建一个ArrayStack实例
const arrStack = new ArrayStack<string>();
arrStack.push('aaaaa');
arrStack.push('bbbbb');
arrStack.push('ccccc');

console.log(arrStack.peek()); //ccccc

console.log(arrStack.size()); //3

const arrStack1 = new ArrayStack<number>();
arrStack1.push(3);
arrStack1.push(7);
arrStack1.push(888);

console.log(arrStack1.size()); //3

const res = arrStack1.peek();
console.log(res); // 888

export {};
